package com.ticket.sass.admin.dto.input.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ywb
 * @date 2022-01-08 10:21
 */

@Data
@ApiModel(value = "角色修改输入DTO")
public class RoleUpdInput {
    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "ID", required = true)
    private Long id;


    @NotBlank(message = "角色名不能为空")
    @ApiModelProperty(value = "角色名", required = true)
    private String name;


    @NotBlank(message = "描述不呢为空")
    @ApiModelProperty(value = "描述", required = true)
    private String desc;
}
